package day8;

public class Cent {
    private String phone;
    private String adress;

    public Cent(String phone, String adress) {
        this.phone = phone;
        this.adress = adress;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }
    public void detect(Car a){
        System.out.println("开始对"+a.getColor()+"色，车牌为"+a.getCarNo()+"的车进行检测：");
        a.start();
        System.out.println("启动检测完毕");
        a.speedup();
        System.out.println("加速检测完毕");
        a.brake();
        System.out.println("刹车检测完毕");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>");
    }
}
